import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'

import { createPinia } from 'pinia'
//导入持久化插件
import {createPersistedState} from'pinia-plugin-persistedstate'
import locale from 'element-plus/es/locale/lang/zh-cn'

import App from './App.vue'

const app = createApp(App)
const pinia=createPinia()
const persist = createPersistedState()
app.use(pinia)
app.use(ElementPlus,{locale})
app.use(router)
app.mount('#app')
pinia.use(persist)



